<html>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<head>
    <title>angularJs入门demo，循环数组</title>
    <script src="angular.min.js"></script>
    <script>
        var app = angular.module("myApp",[]);
        //这个控制器本身就是一个方法，类似于一个类
        app.controller("myController",function ($scope) {
            $scope.list = [102,103,203,444]
            //迭代，类似，foreach
        })
    </script>
</head>
<body ng-app="myApp" ng-controller="myController">
<table>
    <!--循环tr，就在这加-->
    <tr ng-repeat="x in list">
        <td>{{x}}</td>
    </tr>
</table>
</body>
</html>